package com.deewin.comsumer.controller;

import com.deewin.provider.service.HelloService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @DubboReference(group = "provider")
    HelloService helloService;


    @GetMapping(value = "/test")
    public String test(){
        return helloService.sayHello("deewin");
    }

    @GetMapping(value = "/stn")
    public String stn(){
        return helloService.sayHello("--stn");
    }


}
